import request from '@/utils/request'



// 获取视频类型列表
export function getCategoryList(params){
    return request({
        url: '/vms/video/category/getList',
        method: 'get',
        params: params
    })
}

// 获取分页视频类型列表
export function getPaginationList(params){
    return request({
        url: '/vms/video/category/getPaginationList',
        method: 'get',
        params: params
    })
}

// 新增视频类型列表
export function add(data){
    return request({
        url: '/vms/video/category/add',
        method: 'post',
        data: data
    })
}

// 修改视频类型列表
export function updateCategory(data){
    return request({
        url: '/vms/video/category/update',
        method: 'post',
        data: data
    })
}



// 删除
export function delCategory(id){
    return request({
        url: '/vms/video/category/del',
        method: 'delete',
        params: { id }
    })
}

// 获取详情
export function getDetails(id){
    return request({
        url: '/vms/video/category/getDetails',
        method: 'get',
        params: { id }
    })
}


